package cn.ywang;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author: BeatificWang
 * @date: 2018/12/17 22:24
 */
public class ClientApp1 {
	public static void main(String[] args) throws IOException, InterruptedException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-client-1.xml");
		for (int i = 0; i < 20; i++) {
			IHello hello = (IHello) context.getBean("helloImpl");
			System.out.println(hello.sayHello("wang"));
			Thread.sleep(1000);
		}
		System.in.read();
	}
}
